import request from './request'
import qs from 'qs'
//轮播图的接口
export const SlideshowApi = () => request.get('/banner')
// 热门推荐接口
export const RemenApi = () => request.get('/personalized?limit=8')
// 新碟上架接口
export const XindieApi = () => request.get('/album/newest')
// 获取歌单详情
export const reqPlayList = (parmes) => request.post('/playlist/track/all', qs.stringify(parmes));
// 获取所有榜单 /toplist
export const reqTopList = () => request.get('/toplist');
//播放音乐 /song/url/v1
export const BofangyyApi = (parmes) => request.post('/song/url/v1', qs.stringify(parmes))
//发送验证码的接口
export const GeLoginApi = (parmes) => request.post('/captcha/sent', qs.stringify(parmes))
//验证验证码的接口
export const GetYanzhengmaApi = (parmes) => request.post('/captcha/verify', qs.stringify(parmes))
//二维码生成的key值
export const GetErweimaApi = () => request.get('/login/qr/key')
//传入key生成图片的二维码
export const GetErweimatuApi = (parmes) => request.post("/login/qr/create", qs.stringify(parmes))
// 获取歌单评论 /comment/playlist?id=705123491
export const reqCommentPlayList = (id) =>
    request.post(
        '/comment/playlist', qs.stringify(id)
    );
//歌单获取 /top/playlist/highquality
export const GetgedanApi = () => request.get('/top/playlist/highquality')
//电台节目榜 /dj/program/toplist
export const GetdiantaijiemuApi = (parmes) => request.post('/dj/program/toplist', qs.stringify(parmes))
//电台节目推荐榜 /dj/program/toplist/hours
export const GetdiantaijiemutuijianApi = (parmes) => request.post('/dj/program/toplist/hours', qs.stringify(parmes))
//电台分类 /dj/catelist
export const daintaifenleiApi = () => request.get('/dj/catelist')
//电台分类后的音乐 /dj/recommend/type
export const GetdaintaifenleiApi = (parmes) => request.post('/dj/recommend/type', qs.stringify(parmes))
export const GetshdaintaifenleiApi = (parmes) => request.post('/dj/recommend/type', qs.stringify(parmes))
export const GetgqdaintaifenleiApi = (parmes) => request.post('/dj/recommend/type', qs.stringify(parmes))
export const GetfcdaintaifenleiApi = (parmes) => request.post('/dj/recommend/type', qs.stringify(parmes))
export const GetzsdaintaifenleiApi = (parmes) => request.post('/dj/recommend/type', qs.stringify(parmes))
//热门歌手 /top/artists
export const GetrmengeshouApi = (parmes) => request.post('/top/artists', qs.stringify(parmes))
//热门新碟 /top/album
export const GetremenxindieApi = (parmes) => request.post('/top/album', qs.stringify(parmes))
//全部新碟 /album/new
export const GetquanbuxindieApi = (parmes) => request.post('/album/new', qs.stringify(parmes))
//搜索 /cloudsearch
export const GetsousuoApi = (parmes) => request.post('/search', qs.stringify(parmes))